<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<jsp:include page="include.jsp"></jsp:include>
<title>登录</title>
<link rel="stylesheet" href="/bootstrap/css/bootstrap.css">
</head>
<body>
<c:if test="${cookie.userid.value !=null && cookie.user.value !=null}">
<jsp:forward page="Manage.jsp?include=welcome.jsp"></jsp:forward>
</c:if>
	<div class="page-header">
		<div class="container">
			<h2>
				登录 <small>新闻网！</small>
			</h2>
		</div>
	</div>
	<c:forEach var="user" items="${ cookie.value }">
	</c:forEach>
	<div class="container">
		<div class="row">
			<div class="col-md-4"></div>
			<div class="col-md-4">
				<div class='${ requestScope.error==null ? "alert-success" : "alert-danger"}'>
					${ requestScope.error==null ? "请输入用户名和密码" : "您输入的帐号或密码有误,忘记密码？"}
				</div>
				<form:form action="/user/logined/" method="post" modelAttribute="user">
				  <div class="form-group">
				    <label for="exampleInputEmail1">用&nbsp;户&nbsp;名</label>
				    <form:input path="username"  class="form-control" id="exampleInputEmail1" placeholder="请输入用户名"/>
				  </div>
				  <div class="form-group">
				    <label for="exampleInputPassword1">密&nbsp;&nbsp;&nbsp;&nbsp;码</label>
				    <form:password path="userpwd" class="form-control" id="exampleInputPassword1" placeholder="请输入密码"/>
				  </div>
				  <div class="radio" style="margin-left: 10px">
						<label>
					      <input type="radio" name="jl" value="0" checked="checked" >不保存
					    </label>
					</div> 
				  <div class="radio" style="margin-left: 10px">
					    <label> 
					      <input type="radio" name="jl" value="<%=60 * 60 * 24 * 30 %>">保留一月					    
					    </label>
				  </div>
				  <input type="submit" style="margin-left: 80px; margin-top: 20px;" class="btn btn-default" vlaue="提交" />
				  <input type="reset" style="margin-left: 90px; margin-top: 20px;" class="btn btn-default" value="重置" />
				</form:form>
				<hr>
				<a href="">注册账号</a>
			</div>
			<div class="col-md-4"></div>
		</div>
	</div>
	<div class="navbar navbar-fixed-bottom">
		<div class="page-header">
			<div class="container">
				<div class="row">
					<div class="col-md-4">
						<h3>友情链接</h3>
						<hr>
						<a href="http://www.bootcss.cn">Bootstrap中文网</a> <br /> <a
							href="http://www.apache.org">Apache </a>
					</div>
					<div class="col-md-4">
						<h3>我们用到的技术</h3>
						<hr>
						<a href="http://tomcat.apache.org">Tomcat 8.x</a><br> <a
							href="http://www.bootcss.org">Bootstrap</a><br> <a
							href="http://ueditor.baidu.com/website/">UEditor</a>
					</div>
					<div class="col-md-4">
						<h3>赞助商</h3>
						<hr>
						<a href="http://51j08.gxasz.com">51J08</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
